package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author gmx
 * @since 2023-06-25
 */
@Data
@TableName("h2_shop_order_return_process")
@Schema(name = "ShopOrderReturnProcess", description = "")
public class ShopOrderReturnProcess implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "审批id")
    private Long approvedId;
    @Schema(description = "0用户1商户2平台")
    private String processUser;
    @Schema(description = "1签收0未签收")
    private String sign;

    @Schema(description = "0未处理1不同意2同意")
    private Integer status;

    @Schema(description = "审批意见")
    private String opinion;

    @Schema(description = "处理人id")
    private Long userId;

    @Schema(description = "处理人")
    private String userName;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Integer type;
}
